#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int k = 0;
	int i = 0;
	int j = 0;
	scanf("%d", &i);
	for (k =i ; k != 1; k=k)
	{
		for (j = 1; i != 1; i = i - 1)
		{
			j = j * i;
		}
		printf("%d!=%d\n", k, j);
		k--;
		i = k;
	}
	return 0;
}